﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="DinnerSendDetailSrhForm.aspx.cs" Inherits="App_Input_DinnerSendDetailSrhForm" Title="生活管家-送菜单明细"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" >
function popPrint()
{
var date=window.document.getElementById('<%=hidDate.ClientID%>').value;
var time=window.document.getElementById('<%=hidTime.ClientID%>').value;
window.open('./DinnerSendPrintForm.aspx?PRINT_TYPE=DETAIL&DATE='+date+"&TIME="+time,'','toolbars=0,resizable=1');
}
</script>
    &nbsp;<div id="tableResult">
    <table width="100%">
      <tr>
        <td>
            <table class="table_border_line">
                <tr>
			    <td align="left" style="width:100%;">
			        <script language="javascript">
                                        (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
			    </td>						
		      </tr>
            </table>
		    <table class="table_border_line">
                    <tr>
                        <td style="width: 10px; height: 24px;">&nbsp;</td>
                        <td style="WIDTH: 73px" align="left" nowrap class="list_data_bg_left">
                            <span style="color: #ff7300">*</span>送菜日期：</td>
                        <td style="WIDTH: 289px" align="left" nowrap>&nbsp;<asp:TextBox ID="txtDinnerDate"
                            runat="server" Width="94px" onfocus="new Calendar(1900,2015,0,null).show(this);" MaxLength="10"></asp:TextBox></td>
                        <td align="left" nowrap="nowrap" style="width: 11%; height: 24px;">&nbsp;用餐时间：</td>
                         <td >
                             <asp:DropDownList ID="lstDishTime" runat="server" DataTextField="Content" DataValueField="DictNo">
                             </asp:DropDownList></td>
                    </tr>		    
           </table></td>
      </tr>
      <tr>
        <td align="center">
            <br />
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSeach" runat="server" CssClass="button" Text="检 索" Width="100%" OnClick="btnSeach_Click"/></td>											                             
                    
                <td style="width:80px; height: 24px;">
                <input id="btnPrint" type="button" class="button" value="  打 印  "  onclick="popPrint()" style="width: 77px" runat="server"/>
                    <asp:Button ID="btnNew" runat="server" CssClass="button" Text="打 印" Width="100%" OnClick="btnPrint_Click" Visible="false"/></td>	
                                        
             </tr>
          </table>                  
          </td>
      </tr>
    </table>        
        <table width="100%">
            <tr>
                <td align="left" style="100%;">
                <script language="javascript">
                                        (new TitleBar('SearchBar', '送菜明细列表')).showBar();
                            </script>
                </td>
            </tr>
            <tr>
                <td>
                    
                    <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True"
                        AutoGenerateColumns="False" CssClass="GridView_table" DataKeyNames="ApartmentNo"
                        OnRowCommand="viewSrhRst_RowCommand" OnPageIndexChanging="viewSrhRst_PageIndexChanging"
                        OnRowDataBound="viewSrhRst_RowDataBound" BorderStyle="Solid" BorderWidth="3px" EnableViewState="False">
                        <Columns>
                            <asp:BoundField HeaderText="房号" DataField="ApartmentNo" >
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="送菜地址" DataField="DinnerDelivery" >
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="送菜时间" DataField="DinnerTime">
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="菜名" DataField="DishName">
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="数量" DataField="DinnerQuantity">
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="单价" DataField="DinnerPrice">
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                            <asp:BoundField HeaderText="金额" DataField="DinnerAmount">
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                                                        
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        
    </div>
    <asp:HiddenField ID="hidDate" runat="server" />
     <asp:HiddenField ID="hidTime" runat="server" />
</asp:Content>
